// 声明一个常量,保存token名
const bigNewsToken = 'bignews'

// 存
function saveToken(obj){
    localStorage.setItem(bigNewsToken, JSON.stringify(obj))
}

// 取
function getToken(){
    return JSON.parse(localStorage.getItem(bigNewsToken))
}

// 删
function removeToken(){
    localStorage.removeItem(bigNewsToken)
}

export {saveToken,getToken,removeToken}